import { createPinia } from 'pinia'

import persist from 'pinia-plugin-persistedstate'

 const pinia = createPinia()
pinia.use(persist)

export default pinia

export * from './modules/counter'
// 相当于 
// import {useCounterStore} from './modules/counter'
// export {useCounterStore}
